package org.example.easybuy.service;

import com.github.pagehelper.PageInfo;
import org.example.easybuy.entity.Category;
import org.example.easybuy.entity.Product;

import java.util.List;
import java.util.Map;

public interface ProductService {
    PageInfo<Product> getProductPageInfo(Map<String,Object> params);
    boolean deleteProduct(String id) throws Exception;
    Product selectById(String id);
    List<Category> getUpdateLevel(int type,int id);
    boolean updateProduct(Product product) throws Exception;
    boolean addProduct(Product product) throws Exception;
    Product checkProductName(Map<String,Object> params);
    List<Product> selectProductsById(int id);
    boolean updateStock(Product product);
}
